import { Color, Vector4 } from "../util";
import { Component } from "./Component";

export class Scroll extends Component {
    /**
     * 基础属性
     */
    //Scroll类型
    public type = 10
    public uid = "985b5f12-31c9-4165-b12a-119c2c97f930"
    //名称
    public name = "scroll_view"

    //布局方式 0 平行布局 1 垂直布局 默认0
    public layout_type = 0
    //反向排布 默认false
    public layout_reverse = false
    //跳过隐藏的控件 默认true
    public skip_invisible = false
    //九宫格缩放
    public cap_insets: Vector4
    //背景图
    public bg_image: number
    //背景颜色
    public bg_color: Color
    //禁止滚动 默认false
    public block_scrolling = false
    //控件间距
    public margin = 0
    //下拉回弹
    public bounce_enabled = false
    //跟随子控件变动 默认false
    public size_change_according_children = false
    //滚动条开启 默认false
    public scroll_bar_enable = false
}